home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 63 6f 6d 70 75 |Path: ne|ws.compu|
|00000010| 74 65 6b 2e 6e 65 74 21 | 6e 65 77 73 0a 46 72 6f |tek.net!|news.Fro|
|00000020| 6d 3a 20 47 72 65 67 20 | 45 61 74 6f 6e 20 3c 67 |m: Greg |Eaton <g|
|00000030| 65 61 74 6f 6e 40 63 6f | 6d 70 75 74 65 6b 2e 6e |eaton@co|mputek.n|
|00000040| 65 74 3e 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |et>.News|groups: |
|00000050| 63 6f 6d 70 2e 6c 61 6e | 67 2e 63 2b 2b 0a 53 75 |comp.lan|g.c++.Su|
|00000060| 62 6a 65 63 74 3a 20 52 | 65 3a 20 4c 69 6e 6b 69 |bject: R|e: Linki|
|00000070| 6e 67 2c 20 4c 69 62 72 | 61 72 69 65 73 20 61 6e |ng, Libr|aries an|
|00000080| 64 20 53 74 61 74 69 63 | 20 6d 65 6d 65 62 65 72 |d Static| memeber|
|00000090| 73 0a 44 61 74 65 3a 20 | 46 72 69 2c 20 30 32 20 |s.Date: |Fri, 02 |
|000000a0| 46 65 62 20 31 39 39 36 | 20 30 30 3a 33 35 3a 34 |Feb 1996| 00:35:4|
|000000b0| 36 20 2d 30 36 30 30 0a | 4f 72 67 61 6e 69 7a 61 |6 -0600.|Organiza|
|000000c0| 74 69 6f 6e 3a 20 48 61 | 6c 66 2d 45 61 74 6f 6e |tion: Ha|lf-Eaton|
|000000d0| 20 45 6e 74 65 72 70 72 | 69 73 65 73 0a 4d 65 73 | Enterpr|ises.Mes|
|000000e0| 73 61 67 65 2d 49 44 3a | 20 3c 33 31 31 31 42 30 |sage-ID:| <3111B0|
|000000f0| 43 32 2e 36 35 34 36 40 | 63 6f 6d 70 75 74 65 6b |C2.6546@|computek|
|00000100| 2e 6e 65 74 3e 0a 52 65 | 66 65 72 65 6e 63 65 73 |.net>.Re|ferences|
|00000110| 3a 20 3c 34 65 6c 67 6c | 68 24 69 31 6c 40 6b 61 |: <4elgl|h$i1l@ka|
|00000120| 74 69 65 2e 76 6e 65 74 | 2e 6e 65 74 3e 20 3c 34 |tie.vnet|.net> <4|
|00000130| 65 6f 61 70 73 24 6a 36 | 31 40 6b 61 74 69 65 2e |eoaps$j6|1@katie.|
|00000140| 76 6e 65 74 2e 6e 65 74 | 3e 0a 52 65 70 6c 79 2d |vnet.net|>.Reply-|
|00000150| 54 6f 3a 20 67 65 61 74 | 6f 6e 40 63 6f 6d 70 75 |To: geat|on@compu|
|00000160| 74 65 6b 2e 6e 65 74 0a | 4e 4e 54 50 2d 50 6f 73 |tek.net.|NNTP-Pos|
|00000170| 74 69 6e 67 2d 48 6f 73 | 74 3a 20 64 65 6e 33 37 |ting-Hos|t: den37|
|00000180| 32 2e 63 6f 6d 70 75 74 | 65 6b 2e 6e 65 74 0a 4d |2.comput|ek.net.M|
|00000190| 69 6d 65 2d 56 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |ime-Vers|ion: 1.0|
|000001a0| 0a 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 74 |.Content|-Type: t|
|000001b0| 65 78 74 2f 70 6c 61 69 | 6e 3b 20 63 68 61 72 73 |ext/plai|n; chars|
|000001c0| 65 74 3d 75 73 2d 61 73 | 63 69 69 0a 43 6f 6e 74 |et=us-as|cii.Cont|
|000001d0| 65 6e 74 2d 54 72 61 6e | 73 66 65 72 2d 45 6e 63 |ent-Tran|sfer-Enc|
|000001e0| 6f 64 69 6e 67 3a 20 37 | 62 69 74 0a 58 2d 4d 61 |oding: 7|bit.X-Ma|
|000001f0| 69 6c 65 72 3a 20 4d 6f | 7a 69 6c 6c 61 20 32 2e |iler: Mo|zilla 2.|
|00000200| 30 62 35 20 28 4d 61 63 | 69 6e 74 6f 73 68 3b 20 |0b5 (Mac|intosh; |
|00000210| 49 3b 20 36 38 4b 29 0a | 54 6f 3a 20 67 72 65 67 |I; 68K).|To: greg|
|00000220| 67 20 3c 67 72 65 67 67 | 40 6b 61 74 69 65 2e 76 |g <gregg|@katie.v|
|00000230| 6e 65 74 2e 6e 65 74 3e | 0a 0a 67 72 65 67 67 20 |net.net>|..gregg |
|00000240| 77 72 6f 74 65 3a 0a 3e | 20 0a 3e 20 67 72 65 67 |wrote:.>| .> greg|
|00000250| 67 40 6b 61 74 69 65 2e | 76 6e 65 74 2e 6e 65 74 |g@katie.|vnet.net|
|00000260| 20 28 67 72 65 67 67 29 | 20 77 72 69 74 65 73 3a | (gregg)| writes:|
|00000270| 0a 3e 20 0a 3e 20 57 68 | 6f 6f 70 73 21 20 20 4d |.> .> Wh|oops! M|
|00000280| 79 20 65 78 61 6d 70 6c | 65 20 63 6f 64 65 20 77 |y exampl|e code w|
|00000290| 61 73 6e 27 74 20 71 75 | 69 74 65 20 77 68 61 74 |asn't qu|ite what|
|000002a0| 20 49 20 68 61 64 20 69 | 6e 20 6d 69 6e 64 2e 20 | I had i|n mind. |
|000002b0| 20 48 65 72 65 27 73 20 | 74 68 65 0a 3e 20 63 6f | Here's |the.> co|
|000002c0| 72 72 65 63 74 69 6f 6e | 2e 0a 3e 20 0a 3e 20 49 |rrection|..> .> I|
|000002d0| 27 76 65 20 67 6f 74 20 | 61 20 63 6c 61 73 73 20 |'ve got |a class |
|000002e0| 74 68 61 74 20 68 61 73 | 20 73 6f 6d 65 20 73 74 |that has| some st|
|000002f0| 61 74 69 63 20 6d 65 6d | 62 65 72 73 2c 20 77 68 |atic mem|bers, wh|
|00000300| 69 63 68 20 49 27 76 65 | 20 63 6f 6d 70 69 6c 65 |ich I've| compile|
|00000310| 64 0a 3e 20 69 6e 74 6f | 20 61 20 6c 69 62 72 61 |d.> into| a libra|
|00000320| 72 79 2e 20 20 57 68 65 | 6e 20 49 20 74 72 79 20 |ry. Whe|n I try |
|00000330| 74 6f 20 75 73 65 20 74 | 68 6f 73 65 20 73 74 61 |to use t|hose sta|
|00000340| 74 69 63 20 6d 65 6d 62 | 65 72 73 20 69 6e 20 61 |tic memb|ers in a|
|00000350| 6e 0a 3e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |n.> appl|ication |
|00000360| 74 68 61 74 20 6c 69 6e | 6b 73 20 69 6e 20 74 68 |that lin|ks in th|
|00000370| 61 74 20 6c 69 62 72 61 | 72 79 2c 20 74 68 65 20 |at libra|ry, the |
|00000380| 73 74 61 74 69 63 20 6d | 65 6d 62 65 72 73 20 68 |static m|embers h|
|00000390| 61 76 65 6e 27 74 0a 3e | 20 62 65 65 6e 20 69 6e |aven't.>| been in|
|000003a0| 69 74 69 61 6c 69 7a 65 | 64 21 0a 3e 20 0a 3e 20 |itialize|d!.> .> |
|000003b0| 2f 2f 28 54 68 65 20 52 | 57 20 70 72 65 66 69 78 |//(The R|W prefix|
|000003c0| 65 64 20 6f 62 6a 65 63 | 74 73 20 61 72 65 20 52 |ed objec|ts are R|
|000003d0| 6f 75 67 65 20 57 61 76 | 65 20 6f 62 6a 65 63 74 |ouge Wav|e object|
|000003e0| 73 29 0a 3e 20 0a 3e 20 | 2f 2f 66 69 6c 65 20 46 |s).> .> |//file F|
|000003f0| 6f 6f 2e 68 70 70 0a 3e | 20 63 6c 61 73 73 20 46 |oo.hpp.>| class F|
|00000400| 6f 6f 0a 3e 20 7b 0a 3e | 20 70 75 62 6c 69 63 3a |oo.> {.>| public:|
|00000410| 0a 3e 20 20 20 73 74 61 | 74 69 63 20 52 57 43 53 |.> sta|tic RWCS|
|00000420| 74 72 69 6e 67 20 61 5f | 73 74 72 69 6e 67 3b 0a |tring a_|string;.|
|00000430| 3e 20 7d 0a 3e 20 0a 3e | 20 2f 2f 66 69 6c 65 20 |> }.> .>| //file |
|00000440| 46 6f 6f 2e 63 70 70 0a | 3e 20 23 69 6e 63 6c 75 |Foo.cpp.|> #inclu|
|00000450| 64 65 20 22 46 6f 6f 2e | 68 70 70 22 0a 3e 20 0a |de "Foo.|hpp".> .|
|00000460| 3e 20 52 57 43 53 74 72 | 69 6e 67 20 46 6f 6f 3a |> RWCStr|ing Foo:|
|00000470| 3a 61 5f 73 74 72 69 6e | 67 20 3d 20 22 49 6e 69 |:a_strin|g = "Ini|
|00000480| 74 69 61 6c 20 56 61 6c | 75 65 22 0a 3e 20 0a 3e |tial Val|ue".> .>|
|00000490| 20 2f 2f 46 6f 6f 2e 63 | 70 70 20 69 73 20 63 6f | //Foo.c|pp is co|
|000004a0| 6d 70 69 6c 65 64 20 69 | 6e 74 6f 20 61 20 6c 69 |mpiled i|nto a li|
|000004b0| 62 72 61 72 79 20 63 61 | 6c 6c 65 64 20 46 6f 6f |brary ca|lled Foo|
|000004c0| 2e 6c 69 62 2e 0a 3e 20 | 0a 3e 20 2f 2f 66 69 6c |.lib..> |.> //fil|
|000004d0| 65 20 41 70 70 2e 63 70 | 70 0a 3e 20 23 69 6e 63 |e App.cp|p.> #inc|
|000004e0| 6c 75 64 65 20 3c 69 6f | 73 74 72 65 61 6d 2e 68 |lude <io|stream.h|
|000004f0| 3e 0a 3e 20 23 69 6e 63 | 6c 75 64 65 20 22 46 6f |>.> #inc|lude "Fo|
|00000500| 6f 2e 68 70 70 22 0a 3e | 20 0a 3e 20 63 6c 61 73 |o.hpp".>| .> clas|
|00000510| 73 20 42 61 72 0a 3e 20 | 7b 0a 3e 20 20 20 73 74 |s Bar.> |{.> st|
|00000520| 61 74 69 63 20 52 57 43 | 53 74 72 69 6e 67 20 61 |atic RWC|String a|
|00000530| 6e 6f 74 68 65 72 5f 73 | 74 72 69 6e 67 3b 0a 3e |nother_s|tring;.>|
|00000540| 20 7d 0a 3e 20 0a 3e 20 | 52 57 43 53 74 72 69 6e | }.> .> |RWCStrin|
|00000550| 67 20 42 61 72 3a 3a 61 | 6e 6f 74 68 65 72 5f 73 |g Bar::a|nother_s|
|00000560| 74 72 69 6e 67 20 3d 20 | 46 6f 6f 3a 3a 61 5f 73 |tring = |Foo::a_s|
|00000570| 74 72 69 6e 67 3b 0a 3e | 20 0a 3e 20 6d 61 69 6e |tring;.>| .> main|
|00000580| 20 28 29 0a 3e 20 7b 0a | 3e 20 20 20 63 6f 75 74 | ().> {.|> cout|
|00000590| 20 3c 3c 20 42 61 72 3a | 3a 61 6e 6f 74 68 65 72 | << Bar:|:another|
|000005a0| 5f 73 74 72 69 6e 67 3b | 0a 3e 20 7d 0a 3e 20 0a |_string;|.> }.> .|
|000005b0| 3e 20 57 68 65 6e 20 49 | 20 72 75 6e 20 41 70 70 |> When I| run App|
|000005c0| 2c 20 49 20 67 65 74 20 | 61 20 6e 75 6c 6c 20 76 |, I get |a null v|
|000005d0| 61 6c 75 65 20 63 6f 6d | 69 6e 67 20 6f 75 74 2e |alue com|ing out.|
|000005e0| 20 20 57 68 61 74 20 61 | 6d 20 49 20 6e 6f 74 20 | What a|m I not |
|000005f0| 64 6f 69 6e 67 3f 0a 0a | 59 6f 75 20 67 65 74 20 |doing?..|You get |
|00000600| 61 20 6e 75 6c 6c 20 76 | 61 6c 75 65 20 62 65 63 |a null v|alue bec|
|00000610| 61 75 73 65 20 74 68 61 | 74 20 69 73 20 74 68 65 |ause tha|t is the|
|00000620| 20 76 61 6c 75 65 20 6f | 66 20 46 6f 6f 3a 3a 61 | value o|f Foo::a|
|00000630| 5f 73 74 72 69 6e 67 0a | 61 74 20 74 68 65 20 74 |_string.|at the t|
|00000640| 69 6d 65 20 77 68 65 6e | 20 79 6f 75 72 20 6d 61 |ime when| your ma|
|00000650| 69 6e 20 69 73 20 63 6f | 6d 70 69 6c 65 64 20 28 |in is co|mpiled (|
|00000660| 72 65 6d 65 6d 62 65 72 | 20 74 68 65 20 63 6f 6d |remember| the com|
|00000670| 70 69 6c 65 72 0a 64 6f | 65 73 6e 27 74 20 6b 6e |piler.do|esn't kn|
|00000680| 6f 77 20 61 6e 79 74 68 | 69 6e 67 20 61 62 6f 75 |ow anyth|ing abou|
|00000690| 74 20 6f 74 68 65 72 20 | 66 69 6c 65 73 20 77 68 |t other |files wh|
|000006a0| 69 6c 65 20 69 74 20 69 | 73 20 63 6f 6d 70 69 6c |ile it i|s compil|
|000006b0| 69 6e 67 2c 0a 69 6e 63 | 6c 75 64 69 6e 67 20 6c |ing,.inc|luding l|
|000006c0| 69 62 72 61 72 69 65 73 | 29 2e 20 20 54 68 65 20 |ibraries|). The |
|000006d0| 63 6f 6d 70 69 6c 65 72 | 20 6f 6e 6c 79 20 73 65 |compiler| only se|
|000006e0| 65 73 20 77 68 61 74 20 | 74 68 65 20 70 72 65 70 |es what |the prep|
|000006f0| 72 6f 63 65 73 73 6f 72 | 0a 69 6e 63 6c 75 64 65 |rocessor|.include|
|00000700| 64 2c 20 69 2e 65 2e 2c | 20 46 6f 6f 2e 68 70 70 |d, i.e.,| Foo.hpp|
|00000710| 2c 20 77 68 65 72 65 20 | 74 68 65 20 73 74 61 74 |, where |the stat|
|00000720| 69 63 20 69 73 20 44 45 | 46 49 4e 45 44 20 61 6e |ic is DE|FINED an|
|00000730| 64 2c 20 74 68 65 72 65 | 66 6f 72 65 2c 0a 69 6e |d, there|fore,.in|
|00000740| 69 74 69 61 6c 69 7a 65 | 64 20 74 6f 20 30 2e 20 |itialize|d to 0. |
|00000750| 20 41 74 20 6c 69 6e 6b | 20 74 69 6d 65 2c 20 74 | At link| time, t|
|00000760| 68 65 20 73 74 61 74 69 | 63 20 46 6f 6f 3a 3a 61 |he stati|c Foo::a|
|00000770| 5f 73 74 72 69 6e 67 20 | 74 68 61 74 20 69 73 0a |_string |that is.|
|00000780| 73 74 6f 72 65 64 20 69 | 6e 20 74 68 65 20 6c 69 |stored i|n the li|
|00000790| 62 72 61 72 79 20 63 6f | 6e 74 61 69 6e 73 20 61 |brary co|ntains a|
|000007a0| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|000007b0| 63 6f 6e 73 74 61 6e 74 | 20 73 74 72 69 6e 67 0a |constant| string.|
|000007c0| 22 49 6e 69 74 69 61 6c | 20 56 61 6c 75 65 22 2c |"Initial| Value",|
|000007d0| 20 62 75 74 20 74 68 65 | 20 72 65 66 65 72 65 6e | but the| referen|
|000007e0| 63 65 20 69 6e 20 6d 61 | 69 6e 20 77 61 73 20 61 |ce in ma|in was a|
|000007f0| 6c 72 65 61 64 79 20 69 | 6e 69 74 69 61 6c 69 7a |lready i|nitializ|
|00000800| 65 64 0a 61 6e 64 20 69 | 73 20 74 72 65 61 74 65 |ed.and i|s treate|
|00000810| 64 20 61 73 20 61 20 64 | 69 66 66 65 72 65 6e 74 |d as a d|ifferent|
|00000820| 20 6f 62 6a 65 63 74 2e | 0a 0a 3e 20 41 6c 73 6f | object.|..> Also|
|00000830| 2c 20 49 66 20 49 20 72 | 75 6e 20 74 68 65 20 64 |, If I r|un the d|
|00000840| 65 62 75 67 67 65 72 2c | 20 6f 6e 20 74 68 65 20 |ebugger,| on the |
|00000850| 42 61 72 3a 3a 61 6e 6f | 74 68 65 72 5f 73 74 72 |Bar::ano|ther_str|
|00000860| 69 6e 67 20 61 73 73 69 | 67 6e 6d 65 6e 74 0a 3e |ing assi|gnment.>|
|00000870| 20 6c 69 6e 65 2c 20 46 | 6f 6f 3a 3a 61 5f 73 74 | line, F|oo::a_st|
|00000880| 72 69 6e 67 20 69 73 20 | 6e 75 6c 6c 2e 0a 0a 59 |ring is |null...Y|
|00000890| 65 73 2c 20 62 65 63 61 | 75 73 65 20 74 68 65 20 |es, beca|use the |
|000008a0| 63 6f 6d 70 75 74 65 72 | 20 64 69 64 20 77 68 61 |computer| did wha|
|000008b0| 74 20 79 6f 75 20 54 4f | 4c 44 20 69 74 20 74 6f |t you TO|LD it to|
|000008c0| 20 64 6f 2c 20 6e 6f 74 | 20 77 68 61 74 20 79 6f | do, not| what yo|
|000008d0| 75 0a 57 41 4e 54 45 44 | 20 69 74 20 74 6f 20 64 |u.WANTED| it to d|
|000008e0| 6f 2e 0a 0a 2d 2d 20 0a | 20 20 20 20 20 20 20 20 |o...-- .| |
|000008f0| 20 20 20 20 20 20 20 20 | 2d 2d 2d 2d 2d 2d 2d 2d | |--------|
|00000900| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000910| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 20 |--------|------. |
|00000920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 22 | | "|
|00000930| 53 6f 20 6c 6f 6e 67 20 | 61 6e 64 20 74 68 61 6e |So long |and than|
|00000940| 6b 73 20 66 6f 72 20 61 | 6c 6c 20 74 68 65 20 66 |ks for a|ll the f|
|00000950| 69 73 68 21 22 0a 0a 20 | 20 20 20 20 20 20 20 20 |ish!".. | |
|00000960| 20 20 20 20 20 20 20 47 | 72 65 67 20 45 61 74 6f | G|reg Eato|
|00000970| 6e 0a | |n. | |
+--------+-------------------------+-------------------------+--------+--------+